<template>
    <div class="userBox">
        <!-- top -->
            <div class="top">
                <div class="text">
                    <div>
                        <p class="title">Welcome</p>
                        <p class="title">To My</p>
                        <p class="title">HomePage</p>
                        <div class="brief">May you be faithful to yourself,live earnestly and laugh freel.</div>
                        <div class="btn">
                            <!-- <el-button>GO BACK</el-button>
                            <el-button style="background:rgb(255, 136, 0)">GO BACK</el-button> -->
                        </div>
                    </div>
                </div>
                <div class="topRight">
                    <div class="imgbox">
                        <img src="../../assets/images/AIimgs.png">
                        <div class="zhe"></div>
                    </div>
                </div>
            </div>
        <!-- bottom -->
            <div class="bottom">
                text
            <!-- absolute -->
                <div class="warningLine">
                    <div class="line1 line">
                        <span v-for="item in 50" :key="item">
                            <span class="gund">WARNING</span>
                        </span>
                    </div>
                    <div class="line2 line">
                         <span v-for="item in 50" :key="item">
                            <span class="gund">FORBID</span>
                         </span>
                    </div>
                </div>
            </div>
    </div>
</template>

<script>
import { defineComponent } from 'vue'
export default defineComponent({
    setup() {
        
    },
})
</script>

<style lang='scss' scoped>
$f:#fff;
$b:#000;
    .userBox{
        width: 100%;
        overflow: hidden;
        background: $b;
        .top{
            width: 100%;
            display: flex;
            height: 75vh;
            .text{
                width: 50%;
                color: $f;
                display: flex;
                justify-content: center;
                align-items: center;
                p{
                    margin: 0;
                    padding: 0;
                }
                .title{
                    font-size: 70px;
                    font-weight: bold;
                }
                .brief{
                    width: 350px;
                    height: 40px;
                    font-size: 18px;
                    color: rgb(117, 117, 117);
                    word-wrap:break-word;
                    padding-top: 20px;
                }
                .btn{
                    padding-top: 10%;
                    .el-button{
                        width: 140px;
                        height: 40px;
                        color: $f;
                        border: 1px solid #333;
                        background: transparent;
                    }
                }
            }
            .topRight{
                width: 45%;
                height: 100%;
                display: flex;
                justify-content: center;
                .imgbox{
                    width: 52%;
                    height: 96%;
                    background-image: url('../../assets/images/AIbg.png');
                    background-size: 100% 100%;
                    // border-radius: 0px 0px 50% 50%;
                    // background: #8639EB;
                    position: relative;
                    z-index: 0;
                    img{
                        height: 92%;
                        position: absolute;
                        right: 0%;
                        bottom: 0%;
                        z-index: 1;
                        animation: 3s imgtranslateL linear  normal;
                    }
                    .zhe{
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        top: 0;
                        right: 0;
                        background-image: url('../../assets/images/zhe.png');
                        background-size: 100% 100%;
                        z-index: 3;
                        animation: 3s zhetranslateL linear  normal;
                    }
                }
            }
        }
        .bottom{
            height: 25vh;
            background: $b;
            position: relative;
        }
        .warningLine{
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
            .line{
                width: 120%;
                height: 60px;
                overflow: hidden;
                align-items: center;
                display: flex;
                span{
                    margin-right: 20px;
                    font-size: 25px;
                    color: $b;
                    font-weight: bolder;
                    // text-shadow: 0px 0px 9px $b;
                    //  scroller 30s linear infinite
                    .gund{
                        white-space: nowrap;
                        display: inline-block;
                        animation: 7s wordsLoop linear infinite normal;
                    }
                }
            }
            .line1{
                background: rgb(246,110,58);
                transform: rotate(-3deg);
            }
            .line2{
                background: rgb(194,244,129);
                transform: rotate(4deg);
            }
        }
    }

@keyframes wordsLoop {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
}
@-webkit-keyframes wordsLoop {
    0% {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
        -webkit-transform: translateX(-100%);
    }
}

@keyframes imgtranslateL {
    0% {
        right: -40%;
        opacity: 0;
    }
    100% {
        right: 0%;
        opacity: 1;
    }
}
@keyframes zhetranslateL {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
</style>